<?php
include('start.php');

$blogs = $db->gets('select * from blog order by bid desc');

?>

<!DOCTYPE html>
<html>
    <head>
        <?php include (ADM_PATH.'/inc/header.inc.php');?>
    </head>
    <body>
        <div class="container">
            <div class="jumbotron">
                <h1><?php echo getSettingsByKey('web_name');?></h1>
                <p><?php echo getSettingsByKey('web_intro')?></p>
            </div>
            <div class="col-md-12" style="height: 200px;background: #ccc;">
                header
            </div>
            <div class="col-lg-9">
                <?php foreach ($blogs as $blog):?>
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <?php echo $blog['title'];?>
                        </div>
                        <div class="panel-body">
                            <?php echo mb_substr(strip_tags($blog['content']),0,50);?>......
                        </div>
                    </div>
                <?php endforeach;?>
            </div>
            <div class="col-md-3">
                挂件1
            </div>
            <div class="col-md-3" style="height: 200px;background: #ccc;">
                挂件2
            </div>
            <div class="col-md-12 text-center" style="height: 50px;background: gainsboro;">
                <p><?php echo getSettingsByKey('web_foot')?> <a href="http://www.miitbeian.gov.cn/" target="_blank">豫ICP备17015685号</a> </p>
            </div>
        </div>
    </body>
</html>

